package cn.com.coding.common.lang;

/**
 * 常量类
 *
 * @author mxz */
public class Const {

    public final static String CAPTCHA_KEY = "captcha";

    public final static Integer STATUS_ON = 1;

    public final static Integer STATUS_OFF = 0;

    public static final String DEFULT_PASSWORD = "111111";

    public static final String DEFULT_AVATAR = "https://cdn.jsdelivr.net/gh/xzMhehe/StaticFile_CDN/static/img/20210531093359.png";

    /**
     * 超级管理员ID
     */
    public static final int SUPER_ADMIN = 1;
    /**
     * 当前页码
     */
    public static final String PAGE = "page";
    /**
     * 每页显示记录数
     */
    public static final String LIMIT = "limit";
    /**
     * 排序字段
     */
    public static final String ORDER_FIELD = "sidx";
    /**
     * 排序方式
     */
    public static final String ORDER = "order";
    /**
     * 升序
     */
    public static final String ASC = "asc";

    /**
     * 云服务商
     */
    public enum CloudService {
        /**
         * 七牛云
         */
        QINIU(1),
        /**
         * 阿里云
         */
        ALIYUN(2),
        /**
         * 腾讯云
         */
        QCLOUD(3);

        private int value;

        CloudService(int value) {
            this.value = value;
        }

        public int getValue() {
            return value;
        }
    }

}